package com.example.patternfactory0307.factoryPattern.zCommonDoing;

/**
 * Created by huanglijun on 2019/3/7
 */
public class DemoTest {


    public static void main(String[] args) {

        /**
         * 手动一个一个创建对象
         */

        GREEAirConditioner greeAirConditioner = new GREEAirConditioner();
        greeAirConditioner.warmUpHeat();
        greeAirConditioner.reduceHeat();


        GREEWaterHeater greeWaterHeater = new GREEWaterHeater();
        greeWaterHeater.heatUpWater();

        MideaAirConditioner mideaAirConditioner = new MideaAirConditioner();
        mideaAirConditioner.warmUpHeat();
        mideaAirConditioner.reduceHeat();
        mideaAirConditioner.Y();


        MideaWaterHeater mideaWaterHeater = new MideaWaterHeater();
        mideaWaterHeater.heatUpWater();
    }


}
